package com.yxw.live_vod_facade.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="VodProductVo", description="点播视频商品信息")
public class VodProductVo implements Serializable {

    @ApiModelProperty(value="主键")
    private Long vodProductId;

    @ApiModelProperty(value="商品标题")
    private String productName;

    @ApiModelProperty(value="商品主图")
    private String productMasterPic;

    @ApiModelProperty(value="商品详情页")
    private String productDetailPic;

    @ApiModelProperty(value="商品库ID")
    private Long productId;

    @ApiModelProperty(value="创建人")
    private Long createId;

    @ApiModelProperty(value="创建人名称")
    private String createName;

    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value="状态： 0-下架 1-上架")
    private Integer status;

    @ApiModelProperty(value="对应点播视频ID")
    private Long videoId;

    @ApiModelProperty(value="库存")
    private Integer totalCnt;

    @ApiModelProperty(value="价格")
    private Double price;
}
